<template>
  <div class='yunfooter'>
      <div class='yunfcont'>
        <div class='yunlogo'>
            <img src="@/assets/img/wlogo.png" alt="">
        </div>
        <div class='yunfooterMenu'>
            <div class='yun-row'>
                <div class='yun-col yun-col-l' @click="routeToPage('/token')"><span>{{pageData.token}}</span></div>
                <div class='yun-col'><a href="https://t.me/ExploitNetwork" target="_blank" rel="noopener noreferrer"><span>{{pageData.join}}</span></a></div>
            </div>
            <div class='yun-row'>
                <div class='yun-col yun-col-l' @click="routeToPage('/about')"><span>{{pageData.about}}</span></div>
                
                <div class='yun-col appmp'><a href="https://twitter.com/exploit_network" target="_blank" rel="noopener noreferrer"><span>{{pageData.twitter}}</span></a></div>
            </div>
            <div class='yun-row'>
                <div class='yun-col yun-col-l'><a :href="pageData.pdf" target="_blank" rel="noopener noreferrer"><span>{{pageData.whitepaper}}</span></a></div>
                <div class='yun-col'><a href="https://exploitnetwork.medium.com/" target="_blank" rel="noopener noreferrer"><span>{{pageData.medium}}</span></a></div>
            </div>
        </div>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            pageData: this.$lang[this.$store.state.lang].footer,
        }
    },
    methods:{
        routeToPage(path){
            this.$router.push(path)
        }
    },
    watch:{
    '$store.state.lang'(val){
        this.pageData=this.$lang[this.$store.state.lang].footer
    },
  }
   
}
</script>

<style lang='scss' scoped>
    .yunfooter{
        width:100%;
        // max-width:1920px;
        // min-width:1500px;
        padding:40px 0;
        background: #202029;
        margin:0 auto;
        .yunfcont{
            margin:0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width:1200px;
            .yunlogo{
                width:140px;
                img{
                    width:100%;
                }
            }
            .yunfooterMenu{
                width:480px;
                .yun-row{
                    display: flex;
                    .yun-col{
                        width:50%;
                        span{
                            font-size: 18px;
                            color: #FFFFFF;
                            line-height: 50px;
                            cursor: pointer;
                        }
                        &.yun-col-l{
                            margin-right:50px;
                        }
                    }
                }
            }
        }
        
    }
    @media screen and (max-width: 480px) {
        .yunfooter{
        width:100%;
        padding:45px 50px;
        background: #202029;
        margin:0 auto;
        .yunfcont{
            width:100%;
            margin:0 auto;
            display: block;
            justify-content: space-between;
            align-items: center;
            .yunlogo{
                width:140px;
                img{
                    width:100%;
                }
            }
            .yunfooterMenu{
                width:100%;
                margin-top: 40px;
                .yun-row{
                    display: block;
                    .yun-col{
                        width:100%;
                        span{
                            font-size: 18px;
                            color: #FFFFFF;
                            line-height: 50px;
                        }
                        &.yun-col-l{
                            margin-right:0;
                        }
                    }
                    .appmp{
                        margin-top:40px;
                    }
                }
            }
        }
        
    }
    }
</style>